package com.pzh.usercenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication(scanBasePackages = "com.pzh.usercenter")
@MapperScan("com.pzh.usercenter.mapper")
@EnableScheduling // 开启定时任务
@EnableRedisHttpSession(
        maxInactiveIntervalInSeconds = 3600*24,
        redisNamespace = "userLogin:session")//开启spring session，key过期时间为1天
public class YuPaoApplication {

    public static void main(String[] args) {
        SpringApplication.run(YuPaoApplication.class, args);
    }

}
